package com.site.blog.my.core.controller.es;

import com.site.blog.my.core.service.EsProductService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
public class BlogEsController {


    @Resource
    private EsProductService esProductService;
    @PostMapping("/esimport")
    public Integer importEsBlog(){
        int k= esProductService.importEsBlog();
        System.out.println(k);
        return k;
    }



}
